#define _CRT_SECURE_NO_WARNINGS 1
int missingNumber(int* nums, int numsSize)
{
    int x = 0;
    int n = numsSize;
    for (int i = 0; i <= n; ++i)
    {
        x ^= i;
    }
    for (int j = 0; j < numsSize; ++j)
    {
        x ^= nums[j];
    }
    return x;
}

int missingNumber(int* nums, int numsSize)
{
    int x = 0;
    int n = numsSize;
    for (int i = 0; i <= n; ++i)
    {
        x ^= i;
    }
    for (int j = 0; j < numsSize; ++j)
    {
        x ^= nums[j];
    }
    return x;
}






